/**
 * 资料中心
 * 路由
 */
const express = require("express");
const router = express.Router();
const validateRequest = require("../middlewares/validationMiddleware"); // 验证器
// 检验器
const { list_validation, add_validation, update_validation, delete_validation } = require("../validators/information");
const { information_list, information_add, information_update, information_delete } = require("../controllers/information");

router.get("/getInformationList", list_validation, validateRequest, information_list); // 获取公司历史记录
router.post("/addInformation", add_validation, validateRequest, information_add); // 编辑公司历史记录
router.put("/updateInformation", update_validation, validateRequest, information_update); // 编辑公司历史记录
router.delete("/deleteInformation", delete_validation, validateRequest, information_delete); // 删除公司历史记录

module.exports = router;
